﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using CE.Global;
using CE.Configuration;

public partial class security : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    protected void btnSignIn_Click(object sender, EventArgs e)
    {
        if (IsValid)
        {
            if (TextBox1.Text == CE.Configuration.MyConfigurationManager.GetAppSettingValue("Mobile.AdminID"))
            {
                if (TextBox2.Text == CE.Configuration.MyConfigurationManager.GetAppSettingValue("Mobile.AdminPass"))
                {
                    Session[CE.Global.General.Guest] = "Admin";
                    Response.Redirect("default.aspx");
                }
                else
                {
                    lblMessage.Text = "Ooops, please try again.<br/>You keyed something wrong.";
                }
            }
            else
            {
                lblMessage.Text = "Ooops, please try again.<br/>You keyed something wrong.";
            }
        }
        else
        {
        }

    }

}
